const state = {
  userId: JSON.parse(window.localStorage.getItem('userData')) ?  JSON.parse(window.localStorage.getItem('userData')).user_id : null,
  token: JSON.parse(window.localStorage.getItem('userData')) ?  JSON.parse(window.localStorage.getItem('userData')).token : null,
  companyId: JSON.parse(window.localStorage.getItem('userData')) ?  JSON.parse(window.localStorage.getItem('userData')).company_id : null,
  depId: JSON.parse(window.localStorage.getItem('userData')) ?  JSON.parse(window.localStorage.getItem('userData')).depId : null
};

const getters = {

};

const mutations = {

};

const actions = {

};

export default {
    state,
    getters,
    actions,
    mutations
}
  